﻿@model EM.OA.Portal.Models.KnowledgeModels
@{
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}
<script type="text/javascript" src="~/Scripts/page/Knowledge/Knowledge.js"></script>
<div>

    <div class="easyui-layout" style="height: 500px;">
        @*Search*@
        <div data-options="region:'west',title:'',split:true" style="width: 222px;">
            <table>
                <tr>
                    <td colspan="4" style="text-align:right;">
                        <a href="#" class="easyui-linkbutton" iconcls="icon-search" plain="true" onclick="doSearch()">查询</a></td>
                </tr>
                <tr>
                    <td style="text-align: right;">@Html.Label("关键字")：</td>
                    <td>@Html.TextBoxFor(m => m.KnowledgeName, new { @class = "easyui-validatebox" })</td>
                </tr>
                <tr>
                    <td style="text-align: right;">@Html.Label("类别")：</td>
                    <td>@Html.DropDownListFor(m => m.DictionaryKind, new EM.OA.WebCommon.Base.BaseViewModel().GetListItems("KnowledgeKind"), new { @style="width:150px", @class = "easyui-combobox" })
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right;">@Html.Label("标签")：</td>
                    <td>@Html.TextAreaFor(m => m.Tag, new { @cols = "16", @rows = "5", @class = "easyui-validatebox" }) </td>
                </tr>
            </table>
        </div>
        @*list*@
        <div data-options="region:'center',title:'知识库列表'">
            <table id="list" class="easyui-datagrid">
            </table>
        </div>
        @*Detail*@
        <div data-options="region:'east',title:''" style="width: 500px;">
            <div id="toolbar" style="float: right;">
                <a href="#" class="easyui-linkbutton" iconcls="icon-add" plain="true" onclick="add()">增加</a>
                <a href="#" class="easyui-linkbutton" iconcls="icon-edit" plain="true" onclick="edit()">修改</a>
                <a href="#" class="easyui-linkbutton" iconcls="icon-remove" plain="true" onclick="del()">删除</a>
            </div>
            <div id="Name" style="margin-top: 30px; margin-bottom: 10px; text-align: center;">
                知识库标题
            </div>
            <div style="width: 100%">
                <div style="float: left; margin: 0px 0px 0px 5px;">[发布时间]：</div>
                <div id="PublishTime" style="float: left;">2013-12-20</div>
                <div style="float: left; margin: 0px 0px 0px 10px;">[发布人]：</div>
                <div id="Publisher">张三</div>
                <div style="height: 5px;"></div>
                <div style="float: left; margin: 0px 0px 0px 5px;">[最后修改时间]：</div>
                <div id="LastModifyTime" style="float: left;">2013-12-20</div>
                <div style="float: left; margin: 0px 0px 0px 10px;">[最后修改人]：</div>
                <div id="LastModifyPerson">李四</div>
                <div style="border: 1px dashed black; margin: 10px 5px 20px 5px;"></div>
            </div>
            <div id="KnowledgeContent" style="margin: 10px 5px 20px 5px;">
                content
            </div>
        </div>
    </div>

    @*Edit*@
    <div id="dlg" class="easyui-dialog" style="width: 600px; height: 400px; padding: 10px 20px"
        closed="true" buttons="#dlg-buttons" modal="true" resizable="true">
        <div id="dlg-buttons">
            <a href="#" class="easyui-linkbutton" iconcls="icon-ok" onclick="save()">保存</a>
            <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">取消</a>
        </div>
        <form id="fm" method="post">
            @Html.HiddenFor(m => m.KnowledgeID)
            <table>
                <tr>
                    <td style="text-align: right;">@Html.LabelFor(m => m.KnowledgeCode)：</td>
                    <td>@Html.TextBoxFor(m => m.KnowledgeCode, new { @class = "easyui-validatebox", @required = "true", @validType = "length[1,200]" })</td>
                </tr>
                <tr>
                    <td style="text-align: right;">@Html.LabelFor(m => m.KnowledgeName)：</td>
                    <td>@Html.TextBoxFor(m => m.KnowledgeName, new { @class = "easyui-validatebox", @required = "true", @validType = "length[1,200]" })</td>
                </tr>
                <tr>
                    <td style="text-align: right;">@Html.Label("类别")：</td>
                    <td>@Html.DropDownListFor(m => m.DictionaryKind, new EM.OA.WebCommon.Base.BaseViewModel().GetListItems("KnowledgeKind"), new {@style="width:150px", @class = "easyui-combobox", @required = "true" })</td>
                </tr>
                <tr>
                    <td style="text-align: right;">@Html.LabelFor(m => m.Tag)：</td>
                    <td>@Html.TextBoxFor(m => m.Tag, new { @style = "width:430px", @class = "easyui-validatebox", @required = "true" })</td>
                </tr>
                <tr>
                    <td style="text-align: right;">@Html.LabelFor(m => m.Content)：</td>
                    <td>@Html.TextAreaFor(m => m.Content, new { @style = "width:100%", @cols = "50", @rows = "10", @class = "easyui-validatebox", @required = "true" }) </td>
                </tr>
                <tr>
                    <td style="text-align: right;">@Html.Label("附件")：</td>
                    <td>
                        <a href="#">附件上传</a>
                        <span style="color: #808080">单次上传文件大小不能超过20M。</span>
                    </td>
                </tr>
            </table>
        </form>
    </div>

</div>
